﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Rose.Models.ChangePasswordModel>" %>

<asp:Content ContentPlaceHolderID="ScriptContent" runat="server">
<link href="../../Content/Css/registerform.css" rel="Stylesheet" />
</asp:Content>
<asp:Content ContentPlaceHolderID="MiddleContent" runat="server">
    
 
    <div id="headmessage">
   
    </div>

   
    <% using (Html.BeginForm()) { %>
        <%: Html.ValidationSummary(true, "密码更改不成功。请更正错误并重试")%>

        <div id="accountform">
        <p> <a class="laber">&nbsp;</a><a class="info"><%=ViewData["Message"] %></a></p>

       <% if (Model.OldPassword == null)
          {%>
          <p><a class="laber">原密码：</a><a class="info"><%=Html.PasswordFor(m => m.OldPassword)%></a></p>
       <%} %>
       <%else
           { %>
           <%=Html.HiddenFor(m=>m.OldPassword) %>
       <%} %>
       <p> <a class="laber">新密码：</a><a class="info"><%=Html.PasswordFor(m=>m.NewPassword) %></a></p>
       <p> <a class="laber">再输入新密码：</a><a class="info"><%=Html.PasswordFor(m=>m.ConfirmPassword) %></a></p>
       <p><a class="laber">&nbsp;</a><a class="info"><input type="submit" value="确定" /></a></p>
       </div>

        
    <% } %>
   
</asp:Content>
